<?php
class HtmlList extends htmlTag {
	function __construct($id=null,$members = null,$atributes = null) {
		parent::__construct('ul','',$id,$atributes);
		if(is_null($id)){
			$id = 'list'.htmlTag::$nrTags;
		}
		$this->id=$id;
	}
	public function addMember($value){
		$li = new htmlTag('li',$value);
		$this->addInlineTag($li);
	}
	public function addFormatedMember(htmlTag $tag){
		$li = clone $tag;
		$li->setName('li');
		$this->addInlineTag($li);
		
	}
}